﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using MaLu.Data;

namespace MaLu.Common
{
    public class MovePage : Wicresoft.Framework.Authentication.BasePage
    {
        private IDbProvider provider = null;
        protected IDbProvider Provider
        {
            get
            {
                if (provider == null)
                {
                    provider = ProviderManager.Factory.CreateDbProvider();
                    provider.Open();
                   
                }
                return provider;
            }

        }

      
        public int  Year
        {
            get
            {
                int _year = 0;
                int.TryParse(Request["year"] ?? "0", out _year);
                if (_year == 0)
                    _year = DateTime.Today.Year;
                return _year;
            }

        }

        public int MID
        {
            get
            {
                int _mid = 0;
                int.TryParse(Request["mid"] ?? "0", out _mid);

                return _mid;
            }

        }

    }
}
